﻿//----------------------------------------------------------------------------------------------------------------------
/*!
*   \file			ChaosLog.hpp
*	\author		sniperbat
*	\version		1.0
*	\date			2009-3-25
*	\brief		日志基类
*/
//----------------------------------------------------------------------------------------------------------------------
#ifndef	__CHAOSLOG_HPP
#define	__CHAOSLOG_HPP

#include "ChaosGlobalDefine.hpp"

#pragma warning(push)
#pragma warning(disable:4251)
//警告4251 :STL需要有dll接口由客户端使用
#include <xstring>
using namespace std;


#include <locale>

//----------------------------------------------------------------------------------------------------------------------
namespace Chaos
{
	//---------------------------------------------------------------------------------------
	/*!
	 * \class ChsLog
	 *  \brief 日志管理类，实现监听接口。
	 *  \author sniperbat
	*/
	class ChsLogManager;
	class CHAOS_API ChsLog
	{
		friend class ChsLogManager;
	public:
									ChsLog();
		virtual						~ChsLog();
		virtual void				Update()=0;
	protected:
		wstring						m_strLogCache;
		locale						m_loc;

	};

}

#pragma warning(pop)

#endif	//__CHAOSLOG_HPP
